package model
{
	import mx.core.IUID;

	[Bindable]
	public class Note implements IUID
	{
		/////////////////////////////////////////////////////
		// variable declaration
		/////////////////////////////////////////////////////
		public var id:int;
		public var title:String;
		public var message:String;
		public var lat:Number;
		public var lon:Number;
		public var datetime:String;
		///////////////////////////////////////////////////
		// getter/setter
		///////////////////////////////////////////////////
		
		/**
		* returns the unique id
		*/
		public function get uid():String
		{
			return id.toString();
		}
		/**
		* sets the unique id
		*/
		public function set uid(value:String):void
		{
			id=parseInt(value);
		}
	}
}
